package com.lmexpress.orm.webservice.xms;

public class OrderOnlineServiceProxy implements com.lmexpress.orm.webservice.xms.OrderOnlineService {
  private String _endpoint = null;
  private com.lmexpress.orm.webservice.xms.OrderOnlineService orderOnlineService = null;
  
  public OrderOnlineServiceProxy() {
    _initOrderOnlineServiceProxy();
  }
  
  public OrderOnlineServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initOrderOnlineServiceProxy();
  }
  
  private void _initOrderOnlineServiceProxy() {
    try {
      orderOnlineService = (new com.lmexpress.orm.webservice.xms.OrderOnlineServiceServiceLocator()).getOrderOnlineServicePort();
      if (orderOnlineService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)orderOnlineService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)orderOnlineService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (orderOnlineService != null)
      ((javax.xml.rpc.Stub)orderOnlineService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.lmexpress.orm.webservice.xms.OrderOnlineService getOrderOnlineService() {
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService;
  }
  
  public com.lmexpress.orm.webservice.xms.CreateOrderResponse createOrderV2(java.lang.String userToken, com.lmexpress.orm.webservice.xms.CreateOrderRequestV2 createOrderRequestV2) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.createOrderV2(userToken, createOrderRequestV2);
  }
  
  public com.lmexpress.orm.webservice.xms.OrderInfoResponse orderInfoList(java.lang.String apiToken, java.util.Calendar beginDate, java.util.Calendar endDate, int page) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.orderInfoList(apiToken, beginDate, endDate, page);
  }
  
  public com.lmexpress.orm.webservice.xms.LookupOrderVirtualWnoResponse lookupOrderVirtualWno(java.lang.String userToken, com.lmexpress.orm.webservice.xms.LookupOrderRequest lookupOrderRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.lookupOrderVirtualWno(userToken, lookupOrderRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.PrintOrderResponse printOrder(java.lang.String userToken, com.lmexpress.orm.webservice.xms.PrintOrderRequest printOrderRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.printOrder(userToken, printOrderRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.PickUpResponse wishPickUp(java.lang.String userToken, com.lmexpress.orm.webservice.xms.PickUpRequest pickUpRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.wishPickUp(userToken, pickUpRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.CreateOrderResponse createAndAuditOrderV2(java.lang.String userToken, com.lmexpress.orm.webservice.xms.CreateOrderRequestV2 createOrderRequestV2) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.createAndAuditOrderV2(userToken, createOrderRequestV2);
  }
  
  public com.lmexpress.orm.webservice.xms.CalculateChargeResponse calculateCharge(java.lang.String userToken, com.lmexpress.orm.webservice.xms.CalculateChargeRequest calculateChargeRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.calculateCharge(userToken, calculateChargeRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.DeleteOrderResponse deleteOrder(java.lang.String userToken, long orderId) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.deleteOrder(userToken, orderId);
  }
  
  public com.lmexpress.orm.webservice.xms.DeleteOrderResponse deleteOrder2(java.lang.String userToken, java.lang.String orderNo) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.deleteOrder2(userToken, orderNo);
  }
  
  public com.lmexpress.orm.webservice.xms.AuditOrderResponse auditOrder(java.lang.String userToken, long orderId) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.auditOrder(userToken, orderId);
  }
  
  public com.lmexpress.orm.webservice.xms.GetTrackResponse getTrack(java.lang.String userToken, java.lang.String trackingNo) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.getTrack(userToken, trackingNo);
  }
  
  public com.lmexpress.orm.webservice.xms.CreateOrderResponse createOrder(java.lang.String userToken, com.lmexpress.orm.webservice.xms.CreateOrderRequest createOrderRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.createOrder(userToken, createOrderRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.LookupOrderResponse lookupOrder(java.lang.String userToken, com.lmexpress.orm.webservice.xms.LookupOrderRequest lookupOrderRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.lookupOrder(userToken, lookupOrderRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.LookupOrderInfoLoadResponse lookupOrderInfoLoad(java.lang.String userToken, com.lmexpress.orm.webservice.xms.LookupOrderRequest lookupOrderRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.lookupOrderInfoLoad(userToken, lookupOrderRequest);
  }
  
  public com.lmexpress.orm.webservice.xms.CreateOrderResponse createAndAuditOrder(java.lang.String userToken, com.lmexpress.orm.webservice.xms.CreateOrderRequest createOrderRequest) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.createAndAuditOrder(userToken, createOrderRequest);
  }
   
  public com.lmexpress.orm.webservice.xms.GetTransportWayListResponse getTransportWayList(java.lang.String userToken) throws java.rmi.RemoteException{
    if (orderOnlineService == null)
      _initOrderOnlineServiceProxy();
    return orderOnlineService.getTransportWayList(userToken);
  }
  
  
}